import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 获取通用基础信息
export const selectBasicData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/dict`, { params });

// 获取基础信息
export const selectBasic = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/dict/selectBasic`, { params });

// 获取退货折扣点信息
export const getDictList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/dict/getDictList`, { params });

// 修改退货折扣点信息
export const updateDictList = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/dict`,  params );

// 修改基础信息
export const updateDict = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/dict/updateDict`,  params );

//查询配件退货参数
export const findPartReturnParam = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partinfo/findPartReturnParam`, { params });
//新增配件退货参数
export const addOrEditPartReturnParam = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partinfo/addOrEditPartReturnParam`,  params );
//编辑配件退货折扣率
export const editPartReturnParam = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partinfo/editPartReturnParam`,  params );

